<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<div class="nav nav-tabs">
			<h4>卖家列表</h4>
		</div>
		<form class="well form-inline margin-top-20" method="post" action="{:url('index')}">
			行业类别:
			<select class="form-control" name="category" style="width: 140px;">
				<option value='0'>全部</option>
				<volist name="cate" id="vo">
					<option value="{$vo.id}" <eq name="vo.id" value="$where_r.category|default=0">selected</eq> >{$vo.name}</option>
				</volist>
			</select> &nbsp;&nbsp;
			时间:
			<input type="text" class="form-control js-bootstrap-date" name="start_time"
				   value="{$where_r.start_time|default=''}"
				   style="width: 140px;" autocomplete="off">-
			<input type="text" class="form-control js-bootstrap-date" name="end_time"
				   value="{$where_r.end_time|default=''}"
				   style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
			关键字:
			<input type="text" class="form-control" name="keyword" style="width: 200px;"
				   value="{$where_r.keyword|default=''}" placeholder="请输入关键字...">
			<input type="submit" class="btn btn-primary" value="搜索"/>
			<a class="btn btn-danger" href="{:url('index')}">清空</a>
		</form>

		<div class="table-actions">
			<div class="btn-group">
				<if condition="auth_check('add')"><a href="{:url('add')}" class="btn btn-default">新增</a></if>
				<if condition="auth_check('allot')"><a href="javascript:void(0);" onclick="getSelectLayer(this)" data-msg="请选择员工" data-url="{:url('allot')}" class="btn btn-default">分配</a></if>
				<!--<if condition="auth_check('share')"><a href="javascript:void(0);" onclick="getSelectLayer(this)" data-url="{:url('share')}" class="btn btn-default">分享</a></if>-->
			</div>
		</div>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
                    <th width="15">
                        <label>
                            <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                        </label>
                    </th>
					<th>产品编号</th>
					<th>录入时间</th>
					<th>公司名称</th>
					<th>行业类别</th>
					<th>注册地区</th>
					<th>收购负责人</th>
					<th>录入人</th>
					<th>跟进情况</th>
					<th>最近跟进时间</th>
					<th>下次跟进时间</th>
					<th width="130">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="lists" item="vo">
				<tr>
                    <td>
                        <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
                               value="{$vo.id}" title="ID:{$vo.id}">
                    </td>
					<td>{$vo.id}</td>
					<td>{$vo.createtime|date="Y-m-d",###}</td>
					<td>{$vo.company}</td>
					<td>{$vo.cname}</td>
					<td>{$vo.aname}</td>
					<td>{$vo.muname}</td>
					<td>{$vo.cuname}</td>
					<td>{$vo.evolve}</td>
					<td><Notempty name="vo.newtime">{$vo.newtime|date='Y-m-d H:i:s',###}<else/>无</Notempty></td>
					<td><Notempty name="vo.nexttime">{$vo.nexttime|date='Y-m-d H:i:s',###}<else/>无</Notempty></td>
					<td>
						<if condition="auth_check('edit')"><a href='{:url("edit",array("id"=>$vo["id"]))}'>编辑</a></if>&nbsp;
						<if condition="auth_check('follow')"><a href='javascript:parent.openIframeLayer("{:url("follow",["pid" => $vo["id"]])}","卖家跟进记录")'>跟进</a></if>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}<li><a>共计 {$lists->total()} 条</a></li><li>
			<input class="page" type="text" name="pageNum" value="{$lists->getCurrentPage()}"/>
			<a class="topage" data-url="{$lists->getCurrentPath()}">跳转</a>
			</li></div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>